package com.atguigu.ssyx.activity.mapper;


import com.atguigu.ssyx.model.activity.ActivityInfo;
import com.atguigu.ssyx.model.activity.ActivityRule;
import com.atguigu.ssyx.model.activity.ActivitySku;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 * 活动表 Mapper 接口
 * </p>
 *
 * @author author
 * @since 2025-09-16
 */
public interface ActivityInfoMapper extends BaseMapper<ActivityInfo> {

    List<Long> selectSkuIdListExist(List<Long> skuIdList);


    //根据商品id集合查询活动规则列表
    List<ActivityRule> selectActivityRuleList(List<Long> skuIdList);
    /**
     * 根据skuIdList查询对应的活动列表
     * @param skuIdList
     * @return
     */
    List<ActivitySku> selectCartActivityList(List<Long> skuIdList);




}
